/*
 * @Description  : 
 * @Version      : 1.0
 * @Author       : seraph
 * @Date         : 2025-02-18 18:47:36
 * @LastEditors  : seraph
 * @LastEditTime : 2025-02-19 11:16:11
 */
// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///D:/AliYunSyncdisk/ggzx/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/AliYunSyncdisk/ggzx/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///D:/AliYunSyncdisk/ggzx/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import vueDevTools from "file:///D:/AliYunSyncdisk/ggzx/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";
import autoprefixer from "file:///D:/AliYunSyncdisk/ggzx/node_modules/autoprefixer/lib/autoprefixer.js";
var vite_config_default = defineConfig({
  // 插件配置
  plugins: [
    vue(),
    // Vue 单文件组件支持
    vueJsx(),
    // Vue JSX 支持
    vueDevTools()
    // Vue 开发工具
  ],
  css: {
    postcss: {
      plugins: [
        // 自动添加浏览器前缀
        autoprefixer()
        // 确保这行代码存在
      ]
    }
  },
  // 路径别名配置
  resolve: {
    alias: {
      // 配置 @ 作为 src 目录的别名
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url)),
      vue: "vue/dist/vue.esm-bundler.js"
    }
  },
  // 项目根目录，默认为当前工作目录
  root: process.cwd(),
  // 构建输出目录，默认为 dist
  build: {
    outDir: "dist",
    // 输出目录
    assetsDir: "assets",
    // 静态资源目录
    emptyOutDir: true,
    // 构建前先清空输出目录
    minify: "terser",
    // 压缩混淆代码
    sourcemap: false,
    // 不生成 sourcemap
    rollupOptions: {
      // 确保外部化处理的依赖项打包进 vendor.js 文件
      output: {
        entryFileNames: "assets/[name].[hash].js",
        chunkFileNames: "assets/[name].[hash].js",
        assetFileNames: "assets/[name].[hash][extname]"
      }
    }
  },
  // 开发环境配置
  mode: "development",
  // 开发环境服务器配置
  base: "/",
  // 开发服务器配置
  server: {
    // 监听所有可用网络接口
    host: "0.0.0.0",
    // 开发服务器端口
    port: 8181,
    // 自动打开浏览器
    open: true,
    // 接口代理配置
    proxy: {
      // 代理 /api 开头的请求
      "/api": {
        target: "http://localhost",
        // 目标服务器地址
        changeOrigin: true,
        // 允许跨域
        rewrite: (path) => path.replace(/^\/api/, "")
        // 重写路径
      }
    },
    // 严格端口模式
    strictPort: true,
    // 热更新配置
    hmr: {
      overlay: true
      // 显示错误遮罩
    },
    // 允许跨域
    cors: true
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxBbGlZdW5TeW5jZGlza1xcXFxnZ3p4XCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJEOlxcXFxBbGlZdW5TeW5jZGlza1xcXFxnZ3p4XFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9EOi9BbGlZdW5TeW5jZGlzay9nZ3p4L3ZpdGUuY29uZmlnLnRzXCI7LypcbiAqIEBEZXNjcmlwdGlvbiAgOiBcbiAqIEBWZXJzaW9uICAgICAgOiAxLjBcbiAqIEBBdXRob3IgICAgICAgOiBzZXJhcGhcbiAqIEBEYXRlICAgICAgICAgOiAyMDI0LTEyLTEyIDExOjM1OjAzXG4gKiBATGFzdEVkaXRvcnMgIDogc2VyYXBoXG4gKiBATGFzdEVkaXRUaW1lIDogMjAyNS0wMi0xNCAxODo0MTo0OFxuICovXG4vKlxuICogQERlc2NyaXB0aW9uICA6IFZpdGUgXHU5MTREXHU3RjZFXHU2NTg3XHU0RUY2XG4gKiBAVmVyc2l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